package com.enjoyor.soa.traffic.core.tsms.mapper.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.enjoyor.soa.traffic.core.tsms.constant.RltTaskTimeSqlId;
import com.enjoyor.soa.traffic.core.tsms.constant.SchemeFileSqlId;
import com.enjoyor.soa.traffic.core.tsms.domain.SchemeFile;
import com.enjoyor.soa.traffic.core.tsms.mapper.ISchemeFileMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;

@Service
@Transactional
public class SchemeFileMapper extends BaseMapper<SchemeFile> implements ISchemeFileMapper {

	@Override
	public int deleteBySchemeId(String schemeId) {
		return sqlSessionTemplate.delete(getSqlName(SchemeFileSqlId.SQL_DELETE_BY_SCHEMEID), schemeId);
	}
}